package com.linetime.wechat.exception;

import cn.hutool.core.util.StrUtil;

import java.io.Serializable;

/**
 * @author sangaizhi
 * @date 2018/9/23
 */
public class WechatException extends RuntimeException implements Serializable {

    public WechatException(Throwable e) {
        super(e.getMessage(), e);
    }

    public WechatException(String message) {
        super(message);
    }

    public WechatException(String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params));
    }

    public WechatException(String message, Throwable throwable) {
        super(message, throwable);
    }

    public WechatException(Throwable throwable, String messageTemplate, Object... params) {
        super(StrUtil.format(messageTemplate, params), throwable);
    }
}
